package com.gqb.PatternsDesignDynamicProxy;

public class PersonBeanImpl implements PersonBean{
	private String name="gqb";
	private String interests="football";
	private int rating;
	int ratingCount=0;
	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getInterests() {
		return interests;
	}

	@Override
	public int getHotOrNotRating() {
		return this.rating;
	}

	@Override
	public void setName(String name) {
		this.name=name;
	}

	@Override
	public void setInterests(String interests) {
		this.interests=interests;
	}

	@Override
	public void setHotOrNotRating(int rating) {
		this.rating+=rating;
		ratingCount++;
	}

}
